package com.geekaca.exam;

import java.util.Scanner;

public class Test3_getMailName {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入邮箱");
        String email = sc.next();
        getMailName(email);
    }

    public static void getMailName(String email) {
        String email_name = email.split("@")[0];
        System.out.println("邮箱名字为: " + email_name);
    }
}
